<div class="col-md-3">
    <div data-spy="affix" data-offset-top="60" class="bs-sidebar hidden-print affix-top" role="complementary">
        <ul class="nav bs-sidenav">
            <li class="active">
                <a href="#center_avatar">头像</a>
            </li>
            <li class="">
                <a href="#center_baseinfo">基本信息</a>
            </li>
            <li class="">
                <a href="#center_password">修改密码</a>
            </li>
        </ul>
    </div>
</div>
<script>
    $(document).ready(function(){
        $(".nav.bs-sidenav li").on("click", function(e){
            $(".nav.bs-sidenav li").removeClass("active");
            $(e.currentTarget).addClass("active");
        });
    });
</script>